package com.haiqi.common.persistence.dao;

import com.haiqi.common.persistence.entity.AisShipDyna;
import com.haiqi.common.persistence.entity.ShipInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AisShipDynaMapper {
    int deleteByPrimaryKey(String shipid);

    int insert(AisShipDyna record);

    int insertSelective(AisShipDyna record);

    AisShipDyna selectByPrimaryKey(String shipid);

    int updateByPrimaryKeySelective(AisShipDyna record);

    int updateByPrimaryKey(AisShipDyna record);

    ShipInfo selectShip();

    AisShipDyna selectLocation(String mmsi);

    List<AisShipDyna> getListByShipNameOrMmsi(@Param(value = "shipName") String shipName);

    List<AisShipDyna> getlocation(@Param(value = "mmsi")String[] mmsi);

}